#include <iostream>
#define N 100

using namespace std;

int main(){

int array[N];
int i;
int sum=0;
int elements;

cout<<"Type the number of elements you want in the array"<<endl;
cin>>elements;

cout<<"Type the elements"<<endl;
for(i=0; i<elements; i++){
	cin>>array[i];}

cout<<"The original array is ";
for(i=0; i<elements; i++){
	cout<<array[i]<<" ";}
cout<<endl;

for(i=0; i<elements; i++){
	sum +=array[i];}

cout<<"The average value (sum of elements/elements) is "<< sum/elements<<endl;

return 0;
}

